extends "../calxhx_1_1/calxhx_1_1.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "魔焰吉拉"  
	xb = "火"    
	lv = 4
	addSkillTxt("[color=#FFFF00][烈焰焚天][/color]:[color=#FFCC22]攻击敌方全场，造成500%魔攻的火系魔法伤害，自身体力越低威力越低[CD:18][/color]")
	addCdSkill("fentian",18) 

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "fentian":
		var chas = getAllChas(1)
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("烈焰焚天", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		for i in chas:
			typeHurtCha(i,att.mgiAtk * 5 * (att.hp/att.maxHp),Chara.HurtType.PHY,Chara.AtkType.SKILL)